//
//  FunctionMenu.h
//  mcrmSAAS
//
//  Created by wjxfhxy on 14-7-7.
//  Copyright (c) 2014年 GuangZhouXuanWu. All rights reserved.
//

#import <UIKit/UIKit.h>

@class FunctionMenu;

@protocol FunctionMenuDelegate <NSObject>

-(void)functionMenu:(FunctionMenu*)functionMenu clickTag:(NSString*)tag;

-(void)functionMenu:(FunctionMenu*)functionMenu touchEmpty:(id)sender;

@end

@interface FunctionMenu : UIView

@property(nonatomic,weak) id<FunctionMenuDelegate> delegate;

-(id)initWithParentView:(UIView*)parentView menuItemCountPerRow:(NSUInteger)count;

-(void)addMenuItemWithText:(NSString*)text image:(UIImage*)image andTag:(NSString*)tag;

-(void)removeAllItems;

-(void)show;

-(void)dismiss;

@end
